import request from '@/utils/request'

// 查询药品清单列表
export function listDrugdictionary(query) {
  return request({
    url: '/database/drugdictionary/list',
    method: 'get',
    params: query
  })
}

// 查询药品清单详细
export function getDrugdictionary(drugId) {
  return request({
    url: '/database/drugdictionary/' + drugId,
    method: 'get'
  })
}

// 新增药品清单
export function addDrugdictionary(data) {
  return request({
    url: '/database/drugdictionary',
    method: 'post',
    data: data
  })
}

// 修改药品清单
export function updateDrugdictionary(data) {
  return request({
    url: '/database/drugdictionary',
    method: 'put',
    data: data
  })
}

// 删除药品清单
export function delDrugdictionary(drugId) {
  return request({
    url: '/database/drugdictionary/' + drugId,
    method: 'delete'
  })
}
